;(function () {
	var widget = $("div.weather:first");
	var table = widget.find("table.weather-detail");
	var tds = table.find("td");
	var detailObj = tds.filter(".detail");
	function adjust() {
		tds.removeClass("simple-mode");
		detailObj.stop().css("opacity", 0).show().animate({
			opacity: "1"
		}, 500);
		if(widget.innerWidth() <= table.outerWidth())
		{
			tds.addClass("simple-mode");
			detailObj.css("opacity", "0").hide();
		}
		else
		{
			detailObj.stop().css("opacity", 0).show().animate({
				opacity: "1"
			}, 500);
		}
	};
	adjust();
	$(window).bind("resize", adjust);
})();

